<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>文件上传示例</title>
</head>
<body>
    <h1>文件上传示例</h1>
    <form action=""
        method="post"
        enctype="multipart/form-data">
        {# 要提交或上传文件,必须在form表单中添加enctype属性,设置为multipart/form-data    #}
        <p>
            <input type="file" name="file">
            <input type="submit" value="upload">
        </p>
    </form>

</body>
</html>